import helper from "./helper";
const journalSourceType = {
  get customer() {
    return {
      value: 0,
      text: "手工",
    };
  },
  get supplier() {
    return {
      value: 1,
      text: "供应商",
    };
  },
  get thirdparty() {
    return {
      value: 3,
      text: "第三方",
    };
  },
  get employee() {
    return {
      value: 4,
      text: "员工",
    };
  },
  get product() {
    return {
      value: 5,
      text: "产品",
    };
  },
  get expenseItem() {
    return {
      value: 6,
      text: "费用项目",
    };
  },
  get tag() {
    return {
      value: 8,
      text: "标签",
    };
  },
  get array() {
    return helper.objectToArray(journalSourceType);
  },
  get(value) {
    return helper.getEnumItemByValue(journalSourceType, value);
  },
};
export default journalSourceType;
